diff options
| author | Adam Soltys <[email protected]> | 2026-02-04 12:42:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 15:34:19 -0800 |
| commit | 78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (patch) | |
| tree | 413d697c2cfa9d3e867c791e161183bad958ed86 /src/routes/(app)/pay/[username] | |
| parent | 882c3bd3fd01b6001172c61e0d2227d962254c62 (diff) | |
| download | coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.tar.gz coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.zip | |
homepage design and currency toggling
Diffstat (limited to 'src/routes/(app)/pay/[username]')
| -rw-r--r-- | src/routes/(app)/pay/[username]/[...amount]/+page.svelte | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte index daf5bc08..46f73506 100644 --- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte @@ -6,6 +6,7 @@ import Numpad from "$comp/Numpad.svelte"; import { page } from "$app/stores"; import { f, loc, fail, post, s, sat, sats } from "$lib/utils"; + import { fiat as fiatStore } from "$lib/store"; import { applyAction, deserialize } from "$app/forms"; let { data, form } = $props(); @@ -69,7 +70,12 @@ type="button" class="btn !w-auto grow" onclick={setMax} - onkeydown={setMax}>Max ⚡️{s(user.balance)}</button + onkeydown={setMax} + >{#if $fiatStore} + Max {f((user.balance * rate) / sats, currency, locale)} + {:else} + Max ⚡️{s(user.balance)} + {/if}</button > {/if} |
